package se.study.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author: tiger
 * @Date:2018/5/15
 * @Description:
 */
public class ExecutorsDemo {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newCachedThreadPool();
        Task task = new Task();
        executorService.submit(task);
        executorService.shutdown();

    }

    static class Task extends Thread {
        @Override
        public void run() {
            System.out.println("task...");
        }
    }
}
